package sfsoftware.game.actor;

import sfsoftware.game.actor.attributes.Explodable;
import sfsoftware.util.Actor;

public class ExplodableBlock extends Actor implements Explodable {

	public ExplodableBlock(int destX, int destY, String texture, int destWidth,
			int destHeight) {
		super(destX, destY, texture, destWidth, destHeight);
		setWalkable(false);
	}

	public ExplodableBlock(int destX, int destY, String texture, int srcX,
			int srcY, int destWidth, int destHeight) {
		super(destX, destY, texture, srcX, srcY, destWidth, destHeight);
		setWalkable(false);
	}

	@Override
	public void explode() {
		generateParticles(200, 0.45f, 0.45f, 0.45f);
		remove();
	}

	@Override
	public void explode(Actor a) {
		explode();
	}

}
